package com.diy.common.exception;

/**
 * Created by GY on 2015/11/22.
 */
public class ProgramException extends RuntimeException {

    private String msg;
    private Integer code;

    public ProgramException(String msg) {
        this.msg = msg;
    }

    public ProgramException(String msg, Integer code) {
        this.msg = msg;
        this.code = code;
    }

    public ProgramException(String message, Throwable cause, String msg, Integer code) {
        super(message, cause);
        this.msg = msg;
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }
}
